package com.bw.culture.adapter

import com.bw.culture.R
import com.bw.culture.entity.NewsEntity
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder

class CultureAdapter : BaseQuickAdapter<NewsEntity , BaseViewHolder>(R.layout.news_item) {
    override fun convert(holder: BaseViewHolder, item: NewsEntity) {
        holder.setText(R.id.news_title , item.title)
        holder.setText(R.id.news_publishDate , item.publishDate)
        holder.setText(R.id.news_content, item.content)
    }
}